home *** CD-ROM | disk | FTP | other *** search
- on printAll
- global imageResolution
- daList = [32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56]
- repeat with c in daList
- repeat with m = 1 to the number of castMembers of castLib c
- theDoc = new(xtra("PrintOMatic"))
- if objectp(theDoc) then
- w = member(m, c).width / imageResolution.float * 72
- h = member(m, c).height / imageResolution.float * 72
- if w > 611 then
- hmarg = 20
- vmarg = 20
- else
- hmarg = (611 - w) / 2
- end if
- if h > 791 then
- vmarg = 20
- hmarg = 20
- else
- vmarg = (791 - h) / 2
- end if
- setMargins(theDoc, rect(hmarg, vmarg, hmarg, vmarg))
- append(theDoc, member(m, c), 0)
- print(theDoc)
- end if
- theDoc = 0
- unload()
- end repeat
- end repeat
- end
-